package com.gok.util;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

/**
 * @auther: zy
 * @create time: 2020/12/25
 * @description:获取MD5的数
 **/
public class SimpleHashMD5 {
    public static String getMd5(Object pwd,String salts){
        String name="MD5";
        int num=1024;
        ByteSource salt = ByteSource.Util.bytes(salts);
        SimpleHash simpleHash=new SimpleHash(name,pwd,salt,num);
        return simpleHash.toString();
    }
}
